package com.pro.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @ClassName: JsCourse
 * @Author: Kai
 * @DATE: 2022/1/13
 * @TIME: 下午 04:16
 */
public class JsCourse {

    private Integer courseId;
    private Integer userId;
    private Integer classId;
    private Integer recommend;
    private String courseName;
    private String courseIntro;
    private Double coursePrice;
    private Double courseNprice;
    private Integer courseStatus;
    private Integer courseCstatus;
    private String coursePrimary;
    private String url;
    private String courseUrl;
    private String courseInfo;
    private Integer courseNo;
    private Integer courseTime;
    private Integer likeNum;
    private Integer shareNum;
    private Integer collectNum;
    private Integer lookNum;
    private Integer saleNum;
    private Integer id;
    private String createId;
    private String title;
    private Integer hits;

    public JsCourse(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public JsCourse(Integer hits) {
        this.hits = hits;
    }

    public Integer getHits() {
        return hits;
    }

    public void setHits(Integer hits) {
        this.hits = hits;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String createDate;
    private String updateId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String updateDate;

    private CourseClass courseClass;
    private JsUser jsUser;
    private CourseRecord courseRecord;
    private Integer commentCount;//商品评论量

    public JsCourse(Integer courseId, Integer userId, Integer classId, Integer recommend, String courseName, String courseIntro, Double coursePrice, Double courseNprice, Integer courseStatus, Integer courseCstatus, String coursePrimary, String url, String courseUrl, String courseInfo, Integer courseNo, Integer courseTime, Integer likeNum, Integer shareNum, Integer collectNum, Integer lookNum, Integer saleNum, Integer id, String createId, String createDate, String updateId, String updateDate, CourseClass courseClass, JsUser jsUser, CourseRecord courseRecord, Integer commentCount) {
        this.courseId = courseId;
        this.userId = userId;
        this.classId = classId;
        this.recommend = recommend;
        this.courseName = courseName;
        this.courseIntro = courseIntro;
        this.coursePrice = coursePrice;
        this.courseNprice = courseNprice;
        this.courseStatus = courseStatus;
        this.courseCstatus = courseCstatus;
        this.coursePrimary = coursePrimary;
        this.url = url;
        this.courseUrl = courseUrl;
        this.courseInfo = courseInfo;
        this.courseNo = courseNo;
        this.courseTime = courseTime;
        this.likeNum = likeNum;
        this.shareNum = shareNum;
        this.collectNum = collectNum;
        this.lookNum = lookNum;
        this.saleNum = saleNum;
        this.id = id;
        this.createId = createId;
        this.createDate = createDate;
        this.updateId = updateId;
        this.updateDate = updateDate;
        this.courseClass = courseClass;
        this.jsUser = jsUser;
        this.courseRecord = courseRecord;
        this.commentCount = commentCount;
    }

    public JsCourse() {
    }

    public Integer getCourseId() {
        return courseId;
    }

    public void setCourseId(Integer courseId) {
        this.courseId = courseId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public Integer getRecommend() {
        return recommend;
    }

    public void setRecommend(Integer recommend) {
        this.recommend = recommend;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public String getCourseIntro() {
        return courseIntro;
    }

    public void setCourseIntro(String courseIntro) {
        this.courseIntro = courseIntro;
    }

    public Double getCoursePrice() {
        return coursePrice;
    }

    public void setCoursePrice(Double coursePrice) {
        this.coursePrice = coursePrice;
    }

    public Double getCourseNprice() {
        return courseNprice;
    }

    public void setCourseNprice(Double courseNprice) {
        this.courseNprice = courseNprice;
    }

    public Integer getCourseStatus() {
        return courseStatus;
    }

    public void setCourseStatus(Integer courseStatus) {
        this.courseStatus = courseStatus;
    }

    public Integer getCourseCstatus() {
        return courseCstatus;
    }

    public void setCourseCstatus(Integer courseCstatus) {
        this.courseCstatus = courseCstatus;
    }

    public String getCoursePrimary() {
        return coursePrimary;
    }

    public void setCoursePrimary(String coursePrimary) {
        this.coursePrimary = coursePrimary;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getCourseUrl() {
        return courseUrl;
    }

    public void setCourseUrl(String courseUrl) {
        this.courseUrl = courseUrl;
    }

    public String getCourseInfo() {
        return courseInfo;
    }

    public void setCourseInfo(String courseInfo) {
        this.courseInfo = courseInfo;
    }

    public Integer getCourseNo() {
        return courseNo;
    }

    public void setCourseNo(Integer courseNo) {
        this.courseNo = courseNo;
    }

    public Integer getCourseTime() {
        return courseTime;
    }

    public void setCourseTime(Integer courseTime) {
        this.courseTime = courseTime;
    }

    public Integer getLikeNum() {
        return likeNum;
    }

    public void setLikeNum(Integer likeNum) {
        this.likeNum = likeNum;
    }

    public Integer getShareNum() {
        return shareNum;
    }

    public void setShareNum(Integer shareNum) {
        this.shareNum = shareNum;
    }

    public Integer getCollectNum() {
        return collectNum;
    }

    public void setCollectNum(Integer collectNum) {
        this.collectNum = collectNum;
    }

    public Integer getLookNum() {
        return lookNum;
    }

    public void setLookNum(Integer lookNum) {
        this.lookNum = lookNum;
    }

    public Integer getSaleNum() {
        return saleNum;
    }

    public void setSaleNum(Integer saleNum) {
        this.saleNum = saleNum;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCreateId() {
        return createId;
    }

    public void setCreateId(String createId) {
        this.createId = createId;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getUpdateId() {
        return updateId;
    }

    public void setUpdateId(String updateId) {
        this.updateId = updateId;
    }

    public String getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(String updateDate) {
        this.updateDate = updateDate;
    }

    public CourseClass getCourseClass() {
        return courseClass;
    }

    public void setCourseClass(CourseClass courseClass) {
        this.courseClass = courseClass;
    }

    public JsUser getJsUser() {
        return jsUser;
    }

    public void setJsUser(JsUser jsUser) {
        this.jsUser = jsUser;
    }

    public CourseRecord getCourseRecord() {
        return courseRecord;
    }

    public void setCourseRecord(CourseRecord courseRecord) {
        this.courseRecord = courseRecord;
    }

    public Integer getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(Integer commentCount) {
        this.commentCount = commentCount;
    }

    @Override
    public String toString() {
        return "JsCourse{" +
                "courseId=" + courseId +
                ", userId=" + userId +
                ", classId=" + classId +
                ", recommend=" + recommend +
                ", courseName='" + courseName + '\'' +
                ", courseIntro='" + courseIntro + '\'' +
                ", coursePrice=" + coursePrice +
                ", courseNprice=" + courseNprice +
                ", courseStatus=" + courseStatus +
                ", courseCstatus=" + courseCstatus +
                ", coursePrimary='" + coursePrimary + '\'' +
                ", url='" + url + '\'' +
                ", courseUrl='" + courseUrl + '\'' +
                ", courseInfo='" + courseInfo + '\'' +
                ", courseNo=" + courseNo +
                ", courseTime=" + courseTime +
                ", likeNum=" + likeNum +
                ", shareNum=" + shareNum +
                ", collectNum=" + collectNum +
                ", lookNum=" + lookNum +
                ", saleNum=" + saleNum +
                ", id=" + id +
                ", createId='" + createId + '\'' +
                ", createDate='" + createDate + '\'' +
                ", updateId='" + updateId + '\'' +
                ", updateDate='" + updateDate + '\'' +
                ", courseClass=" + courseClass +
                ", jsUser=" + jsUser +
                ", courseRecord=" + courseRecord +
                ", commentCount=" + commentCount +
                '}';
    }
}
